<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>laotou99 图书管理系统</h1>

<h2>新建借书单明细</h2>
<c:url var="formAction" value="/borrowbook/saveBorrowDetail" />
<form:form commandName="borrowBookDetail" action="${formAction}" method="post">
<fieldset>
	<legend>add detail</legend>
	<p>
		<label for="id">id</label>		
		<form:input path="id" id="id" value="${Hid}"/>
	</p>
	<p>
		<label for="bookname">bookname</label>		
		<!--<form:input path="bookname" id="bookname" value="bookname"/>-->
		<!-- ---书名下拉列表--------------------------------------------- -->
		
		<form:select path="bookname" id="bookname1" 
			items="${bookName1}" itemLabel="name" itemValue="name" />
	</p>
	<p>
		<label for="num">num</label>		
		<form:input path="num" id="num" value="1"/>
	</p>
	<p>
		<label for="remark1">remark1</label>		
		<form:input path="remark1" id="remark1" value=" "/>
	</p>
	<p>
		<label for="remark2">remark2</label>		
		<form:input path="remark2" id="remark2" value=" "/>
	</p>
	<p id="buttons">
       <input id="reset" type="reset">
       <input id="submit" type="submit" value="确认明细添加">
   </p>
</fieldset>
</form:form>

</body>
</html>